package cn.eaay.stock.controller;

import cn.eaay.stock.mapper.StockBusinessMapper;
import cn.eaay.stock.service.StockBusinessService;
import cn.eaay.stock.vo.resp.R;
import cn.eaay.stock.vo.stock.StockBusinessVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 股票业务Controller
 */
@RestController
@RequestMapping("/api/quot")
public class StockBusinessController {

    @Resource
    private StockBusinessService stockBusinessService;

    /**
     * 获取股票业务详情
     *
     * @param code
     * @return
     */
    @GetMapping("/stock/describe")
    public R<StockBusinessVo> getStockDescribe(String code) {
        return stockBusinessService.getStockDescribe(code);
    }
}
